import api from '@/utils/request'
import {getUserInfo} from "@/utils/system";

export const getAllChatMsg = () => {
    return api.get('/Admin/chatMessage')
}

export function getWebChatUserBucketNameByUserId() {
    let userId = getUserInfo().userId;
    return api.get('/documentManager/webChatUserBucket/getByUserId?userId=' + userId)
}

// 根据对话双方 查询聊天记录
export const selectByBothUser = (data: any) => {
    return api.post('/Admin/chatMessage/selectByBothUser', data)
}